/**
 * Created by minigci.he on 16/9/21.
 */
console.log('-------------------------')
console.log('test20')

let myElement = document.getElementById('div2')
let myWeakmap = new WeakMap();

myWeakmap.set(myElement, {timesClicked: 0})
myElement.addEventListener('click', function(){
    let logoData = myWeakmap.get(myElement);
    logoData.timesClicked ++;
    myWeakmap.set(myElement, logoData)
})